package com.nut.article.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.nut.article.entity.SysMenu;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SysMenuMapper extends BaseMapper<SysMenu> {

   List<String> getPermissionByRoleId(@Param("roleId") Integer roleId);

   List<SysMenu> selectMenuByUserId(@Param("userId") Integer userId);

}
